package oo.Day01;
//学生类的测试类
public class StudentText {
    public static void main(String[] args) {
        //创建一个学生的对象
        Student zs = new Student();
        //如何给成员变量赋值
        zs.name = "张三";
        zs.address = "河北";
        zs.age = 25;
        //如何调用方法
        zs.study();
        zs.sayHi();

        Student ls = new Student();
        ls.name = "李四";
        ls.age = 13;
        ls.address = "吉林";
        ls.study();
        ls.sayHi();

        //1)创建一个学生对象
        //2)给所有成员变量赋默认值
        //3)
        Student ww = new Student();
        ww.study();
        ww.sayHi();
    }
}
